﻿@model AssetManageSystem.ViewModel.AssetManage.AssetRepairVMs.AssetRepairVM
@inject IStringLocalizer<Program> Localizer;

<wt:form vm="@Model">
    <wt:row items-per-row="ItemsPerRowEnum.Two">
        <wt:textbox field="Entity.DocNumber" disabled="true" />
        <wt:selector field="Entity.RepairAssetId" list-vm="AssetInfoList" text-bind="AssetInfoList.EntityList[0].AsName"
            colspan="2" width="550" select-button-text="请选择资产">
            <wt:searchpanel vm="AssetInfoList" reset-btn="true">
                <wt:row items-per-row="ItemsPerRowEnum.Two">
                    <wt:combobox field="AssetInfoList.Searcher.UseDepId" items="AssetInfoList.Searcher.AllUseDeps"
                        empty-text="@Localizer["Sys.All"]" link-field="AssetInfoList.Searcher.UsePeopleId"
                        trigger-url="/OrgManage/user/GetUserByDep" />
                    <wt:combobox field="AssetInfoList.Searcher.UsePeopleId" items="AssetInfoList.Searcher.AllUsePeoples"
                        empty-text="@Localizer["Sys.All"]" />
                </wt:row>
            </wt:searchpanel>
        </wt:selector>
        <wt:combobox field="Entity.RepairDepId" items="AllRepairDeps" link-field="Entity.RepairmanId"
            trigger-url="/OrgManage/user/GetUserByDep" />
        <wt:combobox field="Entity.RepairmanId" items="AllRepairmans" />
        <wt:datetime field="Entity.OutDate" />
        <wt:textbox field="Entity.RepairUnit" />
        <wt:textbox field="Entity.Contacts" />
        <wt:textarea field="Entity.RepairInfo" colspan="3" />
    </wt:row>
    <wt:row align="AlignEnum.Right">
        <wt:submitbutton />
        <wt:closebutton />
    </wt:row>
</wt:form>
